﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kimola
{
  /// <summary>
  /// This is the wrapper result object for search results.
  /// </summary>
  public class KResult
  {
    /// <summary>
    /// Duration of the search query in seconds.
    /// </summary>
    public double Duration { get; set; }

    /// <summary>
    /// The approximate search result count returned from API.
    /// </summary>
    /// <value>
    /// The approximate count.
    /// </value>
    public int ApproximateCount { get; set; }

    /// <summary>
    /// Array of phrases. This field contains top 10 key-phrases related to search query.
    /// </summary>
    public string[] Phrases { get; set; }

    /// <summary>
    /// Array of <see cref="KResultItem"/>. This field contains search results.
    /// </summary>
    public KResultItem[] Items { get; set; }
  }
}